﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameCore;
using GameObject;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace ResourceManager
{
    public class EntityManager : ManagerResources
    {
        protected VisibleGameObject[] _prototype;
        protected int _nprototype;

        public virtual void InitPrototype()
        {
            _nprototype = 0;
        }
        public virtual VisibleGameObject CreateObject(int id)
        {
           if(id<_prototype.Count<VisibleGameObject>())
            {
                
                    return (VisibleGameObject)_prototype[id].Clone();
            }
            return null;
        }
    }
}
